import { path } from "../../config/path";
import request from './request';

/** 评估视频列表 GET /manage/doctorassessment/get_video_list_simple */
export async function get_video_list_simple(body: any, options?: any) {
  return request(path + '/manage/doctorassessment/get_video_list_simple', {
    method: 'GET',
    headers: {
      Authorization: localStorage.loginToken,
    },
    params: body,
    ...(options || {}),
  });
}
/** 提交评估 POST /manage/doctorassessment/create_assess */
export async function create_assess(body?: any, options?: any) {
  return request(path + '/manage/doctorassessment/create_assess', {
    method: 'POST',
    headers: {
      Authorization: localStorage.loginToken,
    },
    data: body,
    ...(options || {}),
  });
}
/** 评估记录列表 GET /manage/doctorassessment/get_assess_list */
export async function get_assess_list(body: any, options?: any) {
  return request(path + '/manage/doctorassessment/get_assess_list', {
    method: 'GET',
    headers: {
      Authorization: localStorage.loginToken,
    },
    params: body,
    ...(options || {}),
  });
}
/** 患者医生评估记录 GET /manage/get_doctor_access_record_list */
export async function get_doctor_access_record_list(body: any, options?: any) {
  return request(path + '/manage/get_doctor_access_record_list', {
    method: 'GET',
    headers: {
      Authorization: localStorage.loginToken,
    },
    params: body,
    ...(options || {}),
  });
}

/** 评估记录详情 GET /manage/doctorassessment/get_assess_info */
export async function get_assess_info(body: any, options?: any) {
  return request(path + '/manage/doctorassessment/get_assess_info', {
    method: 'GET',
    headers: {
      Authorization: localStorage.loginToken,
    },
    params: body,
    ...(options || {}),
  });
}
/** 视频列表 GET /manage/doctorassessment/get_video_list */
export async function get_video_list(body: any, options?: any) {
  return request(path + '/manage/doctorassessment/get_video_list', {
    method: 'GET',
    headers: {
      Authorization: localStorage.loginToken,
    },
    params: body,
    ...(options || {}),
  });
}
/** 新增或编辑视频 POST /manage/doctorassessment/add_edit_video */
export async function add_edit_video(body?: any, options?: any) {
  return request(path + '/manage/doctorassessment/add_edit_video', {
    method: 'POST',
    headers: {
      Authorization: localStorage.loginToken,
    },
    data: body,
    ...(options || {}),
  });
}
/** 视频详情 GET /manage/doctorassessment/get_video_info */
export async function get_video_info(body: any, options?: any) {
  return request(path + '/manage/doctorassessment/get_video_info', {
    method: 'GET',
    headers: {
      Authorization: localStorage.loginToken,
    },
    params: body,
    ...(options || {}),
  });
}
/** 删除视频 POST /manage/doctorassessment/delete_video */
export async function delete_video(body?: any, options?: any) {
  return request(path + '/manage/doctorassessment/delete_video', {
    method: 'POST',
    headers: {
      Authorization: localStorage.loginToken,
    },
    data: body,
    ...(options || {}),
  });
}
